<?php
namespace app\exception;
class ApiException extends \Exception
{
    public $errno;
    public $msg;
    public $httpStatus = 200;
    public function __construct($message = "", $errno = 1, $httpStatus = 200)
    {
        $this->msg = t($message);
        $this->errno = $errno;
        $this->httpStatus = $httpStatus;
        parent::__construct($message, $errno);
    }
}
